package com;
import com.章节名14.domain.Book;
import com.itheima.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework. web.servlet.ModelAndView;
import org.springframework. web.bind.annotation.RequestMapping;
    @Controller
    public abstract class BookController {
        @Autowired
        private BookService bookservice;
        @RequestMapping("/book")
        public abstract ModelAndView findBookById(Integer id);

        private class BookService {
        }
    };
    Book book = bookService.findBookById(id);
            ModelAndView modelAndview = new ModelAndview();
            modelAndView.setViewName ("book.jsp");
            modelAndView.addobject ("book'', book);
